﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Moq;
using TabbedTemplate.Services;

namespace UnitTest.helpers
{
    public class PunchInfoStorageHelper
    {
        public static async Task<PunchInfoStorage> GetInitializedPunchInfoStorage()
        {
            var _punchInfoStorage =
                new PunchInfoStorage(new Mock<IPreferenceStorage>().Object);

            if (!_punchInfoStorage.PunchInfoStorageInitialized())
            {
                await _punchInfoStorage.PunchInfoStorageInitializeAsync();
            }
            return _punchInfoStorage;
        }

    }
}
